package com.xiaoc.bulldozer.common.model;

import java.io.Serializable;

/**
 * 角色
 * 
 * @author CodeGenerator
 * @date 2014-05-20 17:26:51
 */
public class Role implements Serializable {
    
    private static final long serialVersionUID = -4496968253203617409L;

    /**
     * 管理员角色
     */
    public static final Integer ADMIN = 1;
    
    /**
     * 运营角色
     */
    public static final Integer OPERATOR = 2;
    
    /**
     * 财务角色
     */
    public static final Integer FINANCIAL = 3;
    
    /**
     * 招商淘宝客角色
     */
    public static final Integer BUSINESS_TAOKE = 10;

    /**
     * ID
     */
    private Integer id;

    /**
     * 角色名称
     */
    private String name;

    /**
     * 更新人
     */
    private Integer updateUser;

    /**
     * 更新时间
     */
    private Long updateTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(Integer updateUser) {
        this.updateUser = updateUser;
    }

    public Long getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Long updateTime) {
        this.updateTime = updateTime;
    }

	/* (non-Javadoc)
	 * @see java.lang.Object#hashCode()
	 */
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		return result;
	}

	/* (non-Javadoc)
	 * @see java.lang.Object#equals(java.lang.Object)
	 */
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Role other = (Role) obj;
		if (id == null) {
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		return true;
	}

}
